package com.cj.td.screen;

import org.loon.framework.android.game.core.graphics.Screen;
import org.loon.framework.android.game.core.graphics.opengl.GLEx;
import org.loon.framework.android.game.core.graphics.opengl.LTexture;
import org.loon.framework.android.game.core.input.LTouch;
import org.loon.framework.android.game.core.timer.LTimerContext;

import com.cj.td.screen.layer.MapLayer;

public class TDMain extends Screen {

	@Override
	public void alter(LTimerContext arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void draw(GLEx arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void touchDown(LTouch arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void touchMove(LTouch arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void touchUp(LTouch arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onLoad() {
		LTexture.AUTO_LINEAR();
		//构建地图用的layer
		MapLayer mapLayer = new MapLayer();
		//居中
		centerOn(mapLayer);
		//添加mapLayer到screen
		add(mapLayer);
	}

}
